package org.southyin.demo03;

import org.junit.Test;

import java.io.IOException;
import java.util.Properties;

public class ProDemo01 {
    @Test
    public void test() {
        try {
            Properties p = new Properties();
            p.load(getClass().getClassLoader().getResourceAsStream("db.properties"));
            String value = p.getProperty("aaa");
            System.out.println("value = " + value);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
